package com.ArrayList;

import com.Student.Student;

import java.util.ArrayList;

/*
ArrList集合练习
*/
public class Demo01 {
    public static void main(String[] args) {
        ArrayList<Integer> arr1 = new ArrayList<>();
        ArrayList<String> arr2 = new ArrayList<>();
        ArrayList<Student> arr3 = new ArrayList<>();
        arr1.add(123);
        arr2.add("小红");
        arr3.add(new Student("中华小学1006", "小红", 10, "女", "13527779527", 80, 90, 100, "一班"));
        for (int i = 0; i < arr3.size(); i++) {
            System.out.println(arr3.get(i).getAge());
        }
    }
}
